﻿using System;

namespace System.IO.Pipelines
{
    public interface IWriteableBuffer
    {
        int BlockSize { get; }
        long WrittenLength { get; }

        Memory<byte> GetWritableMemory(int size);
        void WriterAdvance(int bytes);
    }
}